import request from '@/utils/request'

// 客服列表
export function getList (data) {
	return request({
		url: '/manage/system/work-order-list',
		method: 'post',
		data
	})
}
// 客服下拉
export function workSelect (data) {
	return request({
		url: '/manage/system/work-order-status',
		method: 'get',
		params: data
	})
}
// 客服详情
export function workDetail (data) {
	return request({
		url: '/manage/system/work-order-detail',
		method: 'get',
		params: data
	})
}
// 客服回复
export function workReply (data) {
	return request({
		url: '/manage/system/reply-work-order',
		method: 'post',
		data
	})
}
// 订单列表
export function orderList (data) {
	return request({
		url: '/manage/system/orderlist',
		method: 'get',
		params: data
	})
}
// 订单下拉
export function orderSelect (data) {
	return request({
		url: '/manage/system/orderstatus',
		method: 'get',
		params: data
	})
}
// 订单详情
export function orderDetail (data) {
	return request({
		url: '/manage/system/orderdetail',
		method: 'get',
		params: data
	})
}
// 短信下拉
export function vasSelect (data) {
	return request({
		url: '/manage/system/vasordreoptions',
		method: 'get',
		params: data
	})
}
// 短信列表
export function vasList (data) {
	return request({
		url: '/manage/system/vaslist',
		method: 'get',
		params: data
	})
}
// 退款
export function refundOrder (data) {
	return request({
		url: '/pay/nativepay/wx-refund',
		method: 'post',
		data
	})
}
// 驳回
export function rejectOrder (data) {
	return request({
		url: '/manage/system/overrule',
		method: 'post',
		data
	})
}